package com.hjq.mallsearch.feign;

import com.hjq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @auther HJQ
 */
@FeignClient("mall-product")
public  interface   ProducrFeign {
    @RequestMapping("mallproduct/attr/info/{attrId}")
    //@RequiresPermissions("mallproduct:attr:info")
     R info(@PathVariable("attrId") Long attrId);
    @RequestMapping("mallproduct/brand/infos")
    //@RequiresPermissions("mallproduct:brand:list")
    R brandInfos(@RequestParam("brandIds") List<Long> brandIds);

}
